# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

_author=VIPUL
_perlmod=Crypt-Random
pkgname=perl-crypt-random
pkgver=1.52
pkgrel=8
pkgdesc='Cryptographically Secure, True Random Number Generator.'
arch=('any')
url='http://search.cpan.org/~VIPUL/Crypt-Random-1.25/'
license=('GPL' 'PerlArtistic')
depends=('perl' 'gmp')
options=(!emptydirs)
source=("http://cpan.perl.org/modules/by-authors/id/V/VI/$_author/$_perlmod-$pkgver.tar.gz")
sha512sums=('b82252aae6a009b0dc09bf2e6704d114cd4e40b9588269246871d3b1fb66b4abda87e7c324afc30fd9cf19eb0c0502c2af05d8981226513223277f83854b770f')

build() {
  cd "$_perlmod-$pkgver"

  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor

  make
}

package() {
  cd "$_perlmod-$pkgver"

  make install DESTDIR="$pkgdir"
}

